<template>
  <div class="empty-data">
    <img :src="emptyImg" />
    <p>{{ props.emptyDesc }}</p>
  </div>
</template>

<script lang="ts" setup>
import emptyImg from '@/assets/images/no-data.svg';
const props = withDefaults(
  defineProps<{
    emptyDesc?: string;
  }>(),
  {
    emptyDesc: '暂无数据'
  }
);
</script>

<style lang="scss" scoped>
.empty-data {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100%;
  > img {
    width: 90px;
    height: 90px;
  }
  > p {
    font-size: 14px;
    color: #333333;
    font-weight: 400;
    margin: 0;
    line-height: 27px;
  }
}
</style>
